//
//  YPBuzDiscoveryPage_vc.swift
//  YPSwift
//  发现页面
//  Created by ogawa on 2020/5/25.
//  Copyright © 2020 ogawa. All rights reserved.
//

import UIKit

class YPBuzDiscoveryPage_vc: YPCoreBase_vc {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.white;
        self.cycleBtn.backgroundColor = UIColor.blue;
    }

    lazy var cycleBtn : UIButton = {
        let cycleBtn = UIButton.init(type: .custom)
        cycleBtn.setTitle("朋友圈", for: .normal)
        cycleBtn.titleLabel?.font = .systemFont(ofSize: 14)
        self.view.addSubview(cycleBtn)
        
        cycleBtn.snp.makeConstraints { (make) in
            make.centerX.equalToSuperview()
            make.centerY.equalToSuperview()
            make.size.equalTo(CGSize(width: 150, height: 36))
        }
        
        cycleBtn.rx.tap
        .subscribe(onNext:{ [weak self] in
            self?.navigationController?.pushViewController(YPBuzWechatCyclePage_vc(), animated: true)
        })
        .disposed(by: disposeBag)
        
        return cycleBtn
    }()
    
}
